<?php
// $Id: node.tpl.php,v 3.2.1.13 2010/05/14 00:00:00 hass Exp $
?>
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  <div class="clearfix">
    <div class="content">
	<?php 
		if($node->field_display_image[0]['value'] != null){
			if($node->field_display_image[0]['value'] == 1){
				print theme('imagecache', 'article_200_250', $node->field_image[0]['filepath'], $node->field_image[0]['data']['alt'], $node->field_image[0]['data']['title'], array('class' => 'imagefield-field_image_left'));
			}elseif($node->field_display_image[0]['value'] == 2){
				print theme('imagecache', 'article_200_250', $node->field_image[0]['filepath'], $node->field_image[0]['data']['alt'], $node->field_image[0]['data']['title'], array('class' => 'imagefield-field_image_right'));
			}
		}?>
	<?php //print $node->field_image[0]['view']; ?>
	<?php if(isset($node->field_slideshow_position[0]['value']) && $node->field_slideshow_position[0]['value']==0) : ?>
    <?php if (!empty($node->field_slideshow[0]['view'])) : ?>
      <div id="slideshow">
        <?php print $node->field_slideshow[0]['view']; ?>
      </div>
        <div class="nav"><a href="#" id="prev">&lt;&lt; <?php t('PREV'); ?></a> | <a href="#" id="next"><?php t('NEXT'); ?> &gt;&gt;</a></div>
    <?php endif; ?> 
    <?php endif; ?> 	
		<?php print $content ?>
	<?php if(isset($node->field_slideshow_position[0]['value']) && $node->field_slideshow_position[0]['value']==0) : ?>
    <?php if (!empty($node->field_slideshow[0]['view'])) : ?>
      <div id="slideshow">
        <?php print $node->field_slideshow[0]['view']; ?>
      </div>
        <div class="nav"><a href="#" id="prev">&lt;&lt; <?php t('PREV'); ?></a> | <a href="#" id="next"><?php t('NEXT'); ?> &gt;&gt;</a></div>
    <?php endif; ?> 
    <?php endif; ?> 
	<?php if (!empty($node->field_article[0]['view'])) : ?>
      <div id="article_pickup">
        <?php 
			$_GET['search'] = $node->field_article[0]['view'];
			include './web_ctrl/tbr_pickup.php';
		?>
      </div>
    <?php endif; ?>
	<?php if(user_access('edit any '.$node->type.' content')){
		echo '<a href="/fr/node/'.arg(1).'/edit?destination=node%2F'.arg(1).'">modify article</a>';
	}
    ?>
	</div>
      <?php if ($terms): ?>
        <div class="terms">
			<div class="label"><?php print t('Mots-clés');?></div>
			<div class="term"><?php 
				print get_term_link($node);
			?></div>
		</div>
      <?php endif;?>
  </div>
  <?php 
	if ($links) { 
		//print $links; 
	}
  ?>
  <?php 
	print get_link_back($node);
  ?>
</div>